import request from '@/utils/request'

// 查询资金余额列表
export function listUserCapital(query) {
  return request({
    url: '/user/userCapital/list',
    method: 'get',
    params: query
  })
}

// 查询资金余额详细
export function getUserCapital(id) {
  return request({
    url: '/user/userCapital/' + id,
    method: 'get'
  })
}

// 新增资金余额
export function addUserCapital(data) {
  return request({
    url: '/user/userCapital',
    method: 'post',
    data: data
  })
}

// 修改资金余额
export function updateUserCapital(data) {
  return request({
    url: '/user/userCapital',
    method: 'put',
    data: data
  })
}

// 删除资金余额
export function delUserCapital(id) {
  return request({
    url: '/user/userCapital/' + id,
    method: 'delete'
  })
}
export function incomeList(query) {
  return request({
    url: '/user/userFlow/incomeList',
    method: 'get',
    params: query
  })
}